package com.cw.demo.service.impl;

import com.cw.demo.dao.JobDao;
import com.cw.demo.model.Job;
import com.cw.demo.service.JobService;

import java.util.List;

public class JobServiceImpl implements JobService {
//    private DeptDao deptDao = new DeptDaoImpl();

    private JobDao jobDao;
    public boolean saveJob(Job job) {
        return jobDao.saveJob(job);
    }

    public boolean updateJob(Job job) {
        return jobDao.updateJob(job);
    }

    public boolean deleteJob(int id) {
        return jobDao.deleteJob(id);
    }

    public List<Job> findByParam(Job param) {
        return jobDao.findByParam(param);
    }
/*
    public void setJobDao(JobDao jobDao) {
        this.jobDao = jobDao;
    }

    public JobDao getJobDao() {
        return jobDao;
    }*/
public JobServiceImpl(JobDao jobDao){
    this.jobDao = jobDao;
}
}
